home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 505 < prev    next >
Internet Message Format  |  1996-08-06  |  2KB

  1. Path: news.crystalball.com!news
  2. From: Larry Weiss <lfw@oc.com>
  3. Newsgroups: comp.unix.aix,gnu.misc.discuss,comp.std.c
  4. Subject: C Standard library
  5. Date: Mon, 04 Mar 1996 13:47:40 -0600
  6. Organization: crystalball.com
  7. Message-ID: <313B48DC.73DF@oc.com>
  8. References: <4hf5ir$u4@Dortmund.Germany.EU.net> <4hf6hn$1fa@solutions.solon.com>
  9. NNTP-Posting-Host: external.oc.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14. CC: lfw@oc.com
  15.  
  16. Peter Seebach wrote:
  17.  > 
  18.  > Zsolt Koppany  <zkoppany@multix.de> wrote:
  19.  > >I would like to use on add-on malloc package on AIX 4.1 with gnu-c 2.7,
  20.  > >but I see that the standard libraries don't take the malloc I want to link.
  21.  > >The program below shows my problem:
  22.  > >void* malloc(int n)
  23.  > >{
  24.  > >       printf("This AIX works fine\n");
  25.  > >       exit(0);
  26.  > >}
  27.  > >main()
  28.  > >{
  29.  > >       printf(strdup("This AIX has troubles\n"));
  30.  > >       exit(1);
  31.  > >}
  32.  > >When I start the program it prints "This AIX has troubles" to the screen
  33.  > >so not "my" malloc has been called.
  34.   
  35.  
  36.  > According to C, anyway, you're S.O.L. - there is no legal way to replace
  37.  > standard library functions.
  38.  > 
  39.  
  40.  
  41. That fact is the most extreme thing that the C Standardization committee
  42. did to the C programming language.    It changed the very nature of the
  43. Standard library.     I know that there are reasons they did it, but I don't
  44. think that even yet, the fact that they did it has come "home" to most 
  45. programmers.
  46.